﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ToodledoAPI.Exceptions
{
    public class accountException:ToodledoException
    {
        public accountException(string Json)
            : base(Json)
        { }

        public override string Message
        {
            get 
            {
                switch (base.errorCode)
                {
                    case 1:
                        return "You did not specify a key for authentication";
                    case 2:
                        return "The authentication key that you provided has expired or is invalid.";
                    case 3:
                        return "No userid specified when getting a token.";
                    case 4:
                        return "No AppId specified.";
                    case 5:
                        return "Invalid AppID. You must register an AppID before you can use it.";
                    case 6:
                        return "Invalid Userid. The specified user was not found";
                    case 7:
                        return "Excessive Tokens. Your app has requested too many tokens for this user in a short amount of time. You should cache and use a token until it expires.";
                    case 8:
                        return "No signature. You must sign a token request to validate it.";
                    case 9:
                        return "Invalid signature. The signature that you included is invalid.";
                    case 10:
                        return "The email address was left blank.";
                    case 11:
                        return "The password was left blank.";
                    case 12:
                        return "The email/password was invalid.";
                    default:
                        return UnknownMessage;
                }
            }
        }
    }
}
